<?php
/**
 * @authors alex (20779512@qq.com)
 * @date    2014-03-24 16:49:33
 * @version 1.0
 */

class IndexAction extends HomeAction {    

    public function index(){
    	$map['adtype']=1;
    	$banner = M('Ad')->where($map)->order('sort asc')->select();
    	$this->assign('banner',$banner);
        $this->display();
    }

}